<?php
include('../mysqli_connect.php');
$gameId = $_GET['gameId'];
$sql = "delete from game where game_id={$gameId};";
$res = mysqli_query($dbc, $sql);
if ($res) {
  $response = array('status' => true, 'message' => '删除比赛成功', 'data' => $res);
  echo json_encode($response);
} else {
  $response = array('status' => false, 'message' => '删除比赛失败,请检查外键约束', 'error' => mysqli_error($dbc));
  echo json_encode($response);
}
